home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / EasyPHP-2.0b1-setup.exe / {app} / sqlitemanager / INSTALL < prev    next >
Encoding:
Text File  |  2006-04-18  |  2.5 KB  |  78 lines

  1. SQLiteManager installation guide
  2. --------------------------------
  3.  
  4. 1 - Unpack your download file into your 'Document Root' folder
  5.     tar zxf SQLiteManager-*.tar.gz
  6.     or
  7.     unzip SQLiteManager-*.zip
  8.     
  9. 2 - On linux plateform you must set config database (SQLiteManager-*/include/config.db) writable.
  10.  
  11. 3 - Go to http://localhost/SQLiteManager-*/ with your internet browser
  12.  
  13. Secure install (exemple with apache build from source)
  14. --------------
  15. 1 - Unpack your download file into your 'DocumentRoot' folder (/usr/local/apache/htdocs/) 
  16.     we are in /usr/src/ directory
  17.     tar zxf SQLiteManager-*.tar.gz
  18.     mv SQLiteManager-*/ /usr/local/apache/htdocs/
  19.     cd /usr/local/apache/htdocs/
  20.  
  21. 2 - set right to apache's user
  22.     to know your apache user and group see in /usr/local/apache/conf/httpd.conf
  23.     chown -R apache:apache SQLiteManager-*/
  24.     chmod -R 600 SQLiteManager-*/
  25.     
  26. 3 - move config database to another directory
  27.     -Create a new directory, for example:
  28.     mkdir /usr/local/apache/sqliteDb/
  29.     chown -R apache:apache /usr/local/apache/sqliteDb/
  30.     
  31.     -Move config database :
  32.     mv /usr/local/apache/htdocs/SQLiteManager-*/include/config.db /usr/local/apache/sqliteDb/
  33.     
  34.     -Set it writable:
  35.     chmod -R 700 /usr/local/apache/sqliteDb/
  36.     
  37.     -Now you must edit the define file with your favorite editor:
  38.     vi /usr/local/apache/htdocs/SQLiteManager-*/include/user_defined.inc.php
  39.         set
  40.             define("SQLiteDb", "/usr/local/apache/sqliteDb/config.db");
  41.             define("DEFAULT_DB_PATH", "/usr/local/apache/sqliteDb/config.db");
  42.     
  43.     - Remove useless files
  44.         rm INSTALL TODO CHANGES LICENCE test.sqlite
  45.         
  46. 4 - Restricted access
  47.     First you can edit you httpd.conf and add
  48.     <Directory /usr/local/apache/htdocs/SQLiteManager-*/>
  49.         DirectoryIndex index.php
  50.         order deny,allow
  51.         deny from all
  52.         allow from 127.0.0.1 192.168.0.0/24
  53.     </Directory>
  54.     You can authorize only access to computer or/and network
  55.     
  56.     -By default authenticate is disable
  57.         To set it edit define file:
  58.         vi /usr/local/apache/htdocs/SQLiteManager-*/include/user_defined.inc.php
  59.         set
  60.             define("WITH_AUTH", true);
  61.         Now you can login with the default user:
  62.         login : admin    passwd : admin
  63.         login : data    passwd : data
  64.         login : guest    passwd : guest
  65.         
  66.         You can manage all user and groupes where you are logged with 'Admin' account
  67.         
  68. 5 - Use SQLiteManager with SQLite database version 3
  69.     Your php must load at startup the extension : 'php_pdo' and 'php_pdo_sqlite' from PECL 
  70.     open the user configuration file : user_defined.inc.php
  71.     and set
  72.         define('SQLITE3', true);
  73.     Now all the database must be in version 3
  74.     The configuration database is in version 3 too
  75.         
  76.     
  77.         
  78.